﻿using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using PathTracing;

public class PlaneProxy : ShapeProxyBase
{

    public PathTracing.Plane GetPlane()
    {
        PathTracing.Plane plane;
        plane.Normal = transform.up;
        plane.Origin = transform.position;
        plane.EmmisionColor = new Vector3(emmisionColor.r, emmisionColor.g, emmisionColor.b) * emmisionIntensity;
        plane.BaseColor = new Vector3(baseColor.r, baseColor.g, baseColor.b);
        plane.ReflectFactor = Mathf.Clamp01(reflectFactor);
        plane.Roughess = 1;
        return plane;
    }
}
